/**
 * Created by ailk on 2017/7/1.
 */
/**
 * Created by ailk on 2017/6/18.
 */
$(function () {
    var obj={
        root:"",
        init:function () {
            window.location.href=_root+"/static/template/originalrecord/co.html";
            // this.initDate();
            // this.eventInt();
        },
        initDate:function(){
            $.ajax({
                type: 'POST',
                headers: headers,
                url: _root+"/myRepair/loadTemplate" ,
                dataType: "text",
                success: function (data) {
                    alert(data);
                },
                error:function(){

                }

            });
        },
        eventInt:function () {
            var _this=this;
            $("#saveTemplateData").click(function () {
                // alert($("body").html());
                $.ajax({
                    type: 'POST',
                    headers: headers,
                    url: _root+"/myRepair/loadTemplate" ,
                    dataType: "text",
                    success: function (data) {
                        window.location.href=date;
                    },
                    error:function(){

                    }

                });
            });
        }
    }
    obj.init();
})